package cn.tedu.jsd2210.csmall.product.pojo.dto;



import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateAddNewDto implements Serializable {
    @ApiModelProperty(value = "属性模板名称",required = true,example = "测试属性模板名称01")
    @NotNull(message = "必须输入属性模板名称! ")
    private String name;
    @ApiModelProperty(value = "属性模板拼音",required = true,example = "CeShiPinYin")
    @NotNull(message = "必须输入属性模板拼音! ")
    private String pinyin;
    @ApiModelProperty(value = "属性模板关键字",required = true,example = "测试关键字01")
    @NotNull(message = "必须输入属性模板关键字! ")
    private String keywords;
    @ApiModelProperty(value = "属性模板排序",required = true,example = "99")
    @NotNull(message = "必须输入属性模板排序! ")
    @Range(max=255,message = "排序序号必须时[0,255]区间的数值!")
    private Integer sort;
}
